<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
<head>
<META content="IE=8.0000" http-equiv="X-UA-Compatible">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>病人跟踪治疗信息管理系统</title>
<%@ include file="/WEB-INF/jsp/public/public.jspf"%>

<script type="text/javascript">
$(document).ready(function(){
	$('#sendMan').combobox({
		url : "informmanage_showManList.do",
		valueField : 'email',
		textField : 'name'
	});
});

function _send(){
	var email = $("#sendMan").combobox("getValue");
	var name = $("#sendMan").combobox("getText");
	$.post("informmanage_sendEmail.do", {
		"email":email,
		"name":name
	}, function(data) {
		if (data.success == "success") {
			$.messager.alert("提示", "邮件发送成功");
		} else {
			$.messager.alert("提示", "操作失败");
		}
	}, "json");
}

</script>

<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}

body {
	margin: 2px;
}

.add {
	clear: both;
	display: none;
}

a {
	text-decoration: none;
	font-family: "黑体";
}
</style>
</head>
<body>
		<div style="margin-left: 40px;margin-top: 20px">
	    	选择需要通知的病人:<input id="sendMan" name="sendMan" />
			<a class="easyui-linkbutton" data-options="iconCls:'icon-redo'"
				onclick="_send()">发送</a>
	   </div>
</body>
</html>
